#include <iostream>
#include <string>
#include "ArrayPackage.hpp"
using namespace std;
class Person
{
public:
	Person(){};
	Person(string name, int age)
	{
		this->name = name;
		this->age = age;
	}
	~Person(){};
	string name;
	int age;
};
int main(int argc, char const *argv[])
{
	// Array<int>array1(15);
	// Array<>array2(array1);
	// array1 = array2 = array1;

	// Array<int>array(10);
	// for (int i = 0; i < 10; ++i)
	// {
	// 	array.pushBack(i);
	// }
	// cout<<array.m_Array[6]<<endl;

	Array<Person> p(10);
	Person p1("a", 1);
	Person p2("b", 2);
	Person p3("c", 3);
	Person p4("d", 4);
	Person p5("e", 5);
	p.pushBack(p1);
	p.pushBack(p2);
	p.pushBack(p3);
	p.pushBack(p4);
	p.pushBack(p5);
	for (int i = 0; i < p.m_Size; ++i)
	{
		cout<<p.m_Array[i].name<<endl;
		cout<<p.m_Array[i].age<<endl;
	}

	return 0;
}